package com.tomshushu.doc.freedoc.modular.team.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tomshushu.doc.freedoc.modular.team.entity.TeamEntity;
import com.tomshushu.doc.freedoc.modular.team.model.result.TeamListResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description:
 * @author: zhouhong
 * @date: 2025-06-11 12:17
 * @version: 1.0
 */
public interface TeamMapper extends BaseMapper<TeamEntity> {

    /**
     * 获取用户加入的团队列表
     *
     * @param userId
     * @return
     */
    List<TeamListResult> getTeamListByUserId(@Param("userId") String userId);

}